from flask import current_app
from flask import render_template
from flask import send_file

from info import redis_store
from info.modules.index import index_blu

@index_blu.route("/")
def index():
    redis_store.set('name','laowang')
    return render_template('news/index.html')

@index_blu.route("/favicon.ico")
def favicon():
    return current_app.send_static_file('news/favicon.ico')
    return send_file('static/news/favicon.ico')